var gamejs = require('gamejs');

/**
 * Creates a match,
 */
var Match = exports.Match = function() {}

/**
* Return current map
*/
Match.prototype.getMap = function() {} ;
/**
* Set current map
* @param {Map}
*/
Match.prototype.setMap = function(map) {} ;

/**
 * Decrease health by one point
 *
 * @param {undefined|number} hitpoint Removes one health point if undefined, or the specified amount
 *
 * @return {number} The remaining health points
 */
Match.prototype.decreaseHealth = function(hitpoint) {}

/**
 * Change credit amount
 *
 * @param {undefined|number} amount change credit by amount
 *
 * @return {number} The remaining credit points
 */
Match.prototype.changeCredit = function(amount) {}

/**
 * Change score amount
 *
 * @param {undefined|number} amount change score by amount
 *
 * @return {number} The remaining score points
 */
Match.prototype.changeScore = function(amount) {}

/**
 * Update the data in the game
 */
Match.prototype.update = function(){ }

/**
 * Draw the overlay information
 * @param {gamejs.surface} where to draw
 */
Match.prototype.draw = function(surface){ }